package com.study.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

/**
 * @Classname BaseRepository
 * @Version 1.0.0
 * @Date 2022/4/2 23:29
 * @Created by yd
 * 看的这个地方，挺有意思
 * https://blog.csdn.net/qq_42815754/article/details/107635867
 */
//基础dao,作用是不用每次都继承jpa的接口 不作为bean注入spring容器
@NoRepositoryBean
public interface BaseRepository<T, V> extends JpaRepository<T, V>, JpaSpecificationExecutor<T> {
}
